package cn.lzwei.common.constant;

public class WareConstant {
    //采购单状态
    public enum PurchaseType{
        CREATE(0,"新建"),ASSIGNED(1,"已分配"),
        RECEIVED(2,"已领取"),FINISHED(3,"已完成"),
        HASEXECPTION(4,"有异常");
        private Integer code;
        private String msg;
        PurchaseType(Integer code,String msg){
            this.code=code;
            this.msg=msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
    //采购需求状态
    public enum PurchaseDetailType{
        CREATE(0,"新建"),ASSIGNED(1,"已分配"),
        BUYING(2,"正在采购"),FINISHED(3,"已完成"),
        FAILED(4,"采购失败");
        private Integer code;
        private String msg;
        PurchaseDetailType(Integer code,String msg){
            this.code=code;
            this.msg=msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
